package com.csxy.jqr.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Schema(name = "课程基本信息", description = "编辑课程基本信息的表单对象")
@Data
public class CourseInfoForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(name = "课程ID")
    private String id;

    @Schema(name = "课程讲师ID")
    private String teacherId;

    @Schema(name = "课程专业ID")
    private String subjectId;

    @Schema(name = "一级分类ID")
    private String subjectParentId;

    @Schema(name = "课程标题")
    private String title;

    @Schema(name = "课程销售价格，设置为0则可免费观看")
    private BigDecimal price;

    @Schema(name = "总课时")
    private Integer lessonNum;

    @Schema(name = "课程封面图片路径")
    private String cover;

    @Schema(name = "课程简介")
    private String description;

    @Schema(name = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtCreate;


    @Schema(name = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
